var config = require("../config/index");
var POST_URL = config.ip + ":" + config.port + "/api/logs/add";
function postJson(data) {
  return http.postJson(POST_URL, data);
}
module.exports = {
  log(msg) {
    return postJson({
      msg,
      timeStamp: new Date().getTime(),
      mobile: config.mobile,
    });
  },
};
